package com.cosmoplat.xikai.business.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@ApiModel(value = "能耗管理", description = "用于表示系统中的能耗管理")
@Data
public class EnergyManagement implements Serializable {
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;
    @ApiModelProperty(value = "设备编号", example = "EW000008")
    @TableField("code")
    private String deviceCode;
    @ApiModelProperty(value = "能耗", example = "30")
    private String energyConsumption;
    @ApiModelProperty(value = "单位", example = "W")
    private String unit;
    @ApiModelProperty(value = "生产时间", example = "2025-01-0")
    private Date productionTime;
    @ApiModelProperty(value = "操作", example = "进行中")
    private String operate;
}
